<template>
  <router-view></router-view>
</template>

<script setup>
import { useStore } from "vuex";
import { computed } from "vue";

const store = useStore();

// 提交执行 mountion
let incomment = () => {
  store.commit("changeCount", { count: 5 });
};

// 计算属性
let count = computed(() => store.state.count);
</script>
